This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
Subject: Agent trying to FTP docs from Notes Server to AS400
Feedback Type: Problem
Product Area: Domino Designer on Eclipse (DDE)
Technical Area: Application Development
Platform: Windows
Release: 8.5
Reproducible: -Reproducibility-
I have written the following code to take attachments that are coming in on emails and move them to the C:\Mail file on the server and then FTP them to our AS400. When I run the agent manually from my PC, it will detach the file to the drive but it does not handle the FTP. Also, When I run the agent from the server, it will not even put the attachment over to the Domino server. Has anyone ever tried to do anything of this sort? Below is the code:
Set db = s.Currentdatabase
Set dc = db.Unprocesseddocuments
Set doc = dc.Getfirstdocument()
Set rtitem = doc.GetFirstItem ("Body")
If (rtitem.Type = RICHTEXT) Then
ForAll obj In rtitem.EmbeddedObjects
If (obj.type=EMBED_ATTACHMENT) Then
attachname = obj.source
MsgBox "Now detaching file"
Print "Now Detaching file"